package com.longteng.lesson2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/form")
public class FormController {

    @RequestMapping("/view")
    public ModelAndView formView(){
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.setViewName("form");
        return modelAndView;
    }
}
